
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Anonym.Data.Entities
{
    /// <summary>
    /// 商品
    /// </summary>
    public class P_Commodity
    {
        
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long ID { get; set; } = 0;

        /// <summary>
        /// 商品编号
        /// </summary>
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 公司id
        /// </summary>
        public long CompanyId { get; set; } = 0;

        /// <summary>
        /// 商品分类Id；数据字典Id
        /// </summary>
        public long ClassifyId { get; set; } = 0;

        /// <summary>
        /// 存货代码
        /// </summary>
        public string InventoryCode { get; set; } = string.Empty;

        /// <summary>
        /// 包装重量
        /// </summary>
        public long PackWeight { get; set; } = 0;

        /// <summary>
        /// 库存量
        /// </summary>
        public int Inventory { get; set; } = 0;

        /// <summary>
        /// 类型Id；数据字典Id
        /// </summary>
        public long TypeId { get; set; } = 0;

        /// <summary>
        /// 车间Id；数据字典Id
        /// </summary>
        public long WorkShopId { get; set; } = 0;

        /// <summary>
        /// 打包规格；[{code:"",value:""}]
        /// </summary>
        public string SpecificationJosn { get; set; } = string.Empty;

        /// <summary>
        /// 状态；0:停售  1：在售
        /// </summary>
        public int State { get; set; } = 0;

        /// <summary>
        /// 删除标识；0：未删除  1：已删除
        /// </summary>
        public int Deleted { get; set; } = 0;

        /// <summary>
        /// 创建人
        /// </summary>
        public long CreatorUserId { get; set; } = 0;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; } = new DateTime(1900,1,1);

        /// <summary>
        /// 最后一次修改人
        /// </summary>
        public long LastModifierUserId { get; set; } = 0;

        /// <summary>
        /// 最后一次修改时间
        /// </summary>
        public DateTime LastModificationTime { get; set; } = new DateTime(1900,1,1);

    }
}

